﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.CustomDB
{
    [Serializable]
    public class LightModel
    {
        /// <summary>
        /// 大小
        /// </summary>
        public Size Size { get; set; }

        /// <summary>
        /// 打开时的颜色
        /// </summary>
        public Color OnColor { get; set; } = Color.Lime;

        /// <summary>
        /// 关闭的颜色
        /// </summary>
        public Color OffColor { get; set; } = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));

        /// <summary>
        /// 状态，On为打灯，
        /// </summary>
        public string State { get; set; } = "On";

        /// <summary>
        /// 是否显示文字
        /// </summary>
        public Boolean ShowText { get; set; } = true;

        /// <summary>
        /// 显示文字
        /// </summary>
        public String Text { get; set; } = "";


        /// <summary>
        /// 文字颜色
        /// </summary>
        public Color ForeColor { get; set; } = Color.Black;


        /// <summary>
        /// 位置
        /// </summary>
        public Point Location { get; set; } = new Point(0,0);


        
    }
}
